Not only during the creation process of an XML document but also while working in the Source View it is possible to associate a schema with your XML document. Please click “XML > Associate a Schema” in the menu bar on top and choose one of the schemas listed in the “Select Schema” dialog box. Click “OK” to associate the schema. For associating a schema, you can choose between schemas that are located in projects you have access to in the Repository or schemas stocked in the built-in XML catalog. To import your own schemas to the Repository, see Import. Currently only W3C Schemas are supported in the TextGridLab.
In the Source View errors in the general XML syntax (missing quotes, missing brackets, missing end tags) are indicated as well as validation errors (in case a schema is specified) with red wavy underlines. To check if your XML document is well-formed and valid, you can validate it. You can validate your document in any View by clicking “XML > Show Validation Errors” in the menu bar on top. The Validation Errors View will pop up below the Editor View/Field showing an error message and identifying the invalid XML provided that there is an error.